// const { defineConfig } = require('@vue/cli-service')

// module.exports = defineConfig({
//   transpileDependencies: true,
//   chainWebpack: config => {
//     config.plugin('define').tap(definitions => {
//       Object.assign(definitions[0]['process.env'], {
//         NODE_HOST: '"http://localhost:8888"',
//       });
//       return definitions;
//     });
//   }
// })
module.exports = {
	devServer: {
		proxy: {
			"/api": {
				target: "http://music-backend-service:8030", //这里填入你要请求的接口的前缀
				ws: true, //代理websocked
				changeOrigin: true, //虚拟的站点需要更管origin
				secure: true, //是否https接口
				pathRewrite: {
					"^/api": "", //重写路径
				},
			},
		},
	},
};
